package org.geek4j.service.impl;

import java.util.Random;

import org.geek4j.domain.Person;
import org.geek4j.service.PersonService;

public class PersonServiceImpl implements PersonService {

	public String sayHello(String name) {
		return "Hi, {}!".replace("{}", name);
	}

	public Person retrievePerson() {
		Person person = new Person();
		person.setAge(new Random().nextInt(10) + 7);
		person.setName("Geek4J");
		return person;
	}

}